/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcnss.ui.menu.command;
import com.rcnss.ui.application.main.layout.MainLayout;
import com.rcnss.ui.form.AsignReclamationListForm;
import com.rcnss.ui.form.NewReclamationForm;
import com.vaadin.ui.Component;
import com.vaadin.ui.MenuBar.MenuItem;
import java.util.Iterator;

/**
 *
 * @author Guesmi
 */
public class MenuCommandReclamationsAffecte extends AbstractMenuCommand  {

    public void menuSelected(MenuItem selectedItem) {
        Iterator<Component> comp =this.window.getComponentIterator();
        Component c = comp.next();
        if(c.getClass().equals(MainLayout.class))
        {
                AsignReclamationListForm p = new AsignReclamationListForm();
                ((MainLayout)c).setForm(p);
        }
    }

}
